package com.css.common.core.exception;

import lombok.Getter;
import org.apache.poi.ss.formula.functions.T;

/**
 * 业务异常
 *
 * @author gaohongliang
 * @version 1.0
 */
public class BizException extends RuntimeException {
    @Getter
    private String code;

    @Getter
    private Object body;

    public BizException(Object t) {
        super();
        this.body = t;
    }


    @Getter
    private String[] params;

    public BizException(String code) {
        super(code);
        this.code = code;
    }

    public BizException(String code, String... params) {
        super(code);
        this.code = code;
        this.params = params;
    }

}
